Fix input/output file pathnames