Fixed an error where no prefix specified on the command line and none found in file would case an uncaught exception when writing the postfix of the last file to dosk