better handling of master signature_files

Use an actual variable (duh) for the placeholder string used to
make master files sort after mezzanines. More careful placement
of the .replace().