make is_mingw more simplify