added custom main test for windows batch
added cli option to set a custom main class for windows batch
fixed the wrong check (due to delayed expansion) in bat-template
Merge pull request #442 from tartakynov/custom-main-windows

#415 custom mainclass for Windows