Fix cygwin detection in perl