Adding the absolute path checking for input files