Fixing input/output filenames