use complete file path in isFileExist()