build.bat improvements

* Improve the way how version number is extracted form header files. 
* Update version when using /GetVersion to get current data. 
* cosmetics