build.bat: Simplify checks