Sort input files; update path to local input