MDL-43461 behat: Using linux-style directory separators when using cygwin
MDL-43461 testing: Avoid switching to .bat files when running MinGW

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