Bugfix typo in generating output file names