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