Fix output file path