fix to run in cygwin

fix the scripts to run in cygwin env