The "exit ..." calls should be "exit /b ..." calls so that just
the batch file is exited and not the invoking command shell.
Also, the second "dirname" call in get_msc_ver.sh assumes that
dirname can be found on the default PATH. It needs to be
accessed via TOOL_DIR like the other non-Windows commands.