check whether the file to source exists