Save the output file in the same directory as the input file