mmj.cmd: use --target-env-type windows
*.cmd: fix quoting of %~dp0; reduced complexity