Detect msys2 via uname (different to msys)

uname -s
  msys gives "MINGW32"
  msys2 gives "MINGW_NT-6.2"
Test Trac #5996