script fix for windows