fix shell script problems on windows