make _checkFileExists async.