fix the input file or directory command