treat mingw.sh as actual script, bash syntax fix