Fix bat template to work in windows.

* Add \ where appropriate
* Remove @template_defines@ as it was unused.