build script bug fix for windows