merge_files: add extra sanity check that input files are in fact files