merge-file: correctly open files when in a subdir