Re #3502. Allow user specified output file prefixes.

It took 19 months to get to. And <30 minutes to fix and test.