fix mac batch file error