build.bat: Simplify some code