Fix output file names.