Ensure that windows opens the right file for output.