Fix for checking if batch file was specified. Previously checked the wrong variable