added build.bat for windows
make sure not to pass a path with trailing-slash to sys.FileSystem.stat - errors on windows