fix script/batch file check