PIPE-1082: fix bug that improperly removes chars from SDM endings
This adds more robust sanitization to
allow MSs ending in '.ms' or '_target.ms' while doing no harm to
other visibility file names.
An accompanying executeppr_test.py file is included to check this
new method.