Replace file naming code (for when there is a prefix or postfix), which caused duplicate filenames.
Now the filenames are similar to those for no prefix nor postfix.  It's longer, but duplicates are
much less likely.