check whether input files are exist