MDL-43461 testing: Avoid switching to .bat files when running git bash

MinGW can not execute .bat files (http://sourceforge.net/p/mingw/bugs/1902)
so we should not switch to .bat files when running git bash.