fixed build.bat error

Fixed `build.bat` to include variable expansion, resetting defaults at
beginning of script should work properly now.