(qb) Fix OS detection under msys2
Merge pull request #1037 from heuripedes/master

(qb) Fix OS detection under msys2