Fix detection of CYGWIN and MINGW32 in shlr/grub