build script fix for windows