Update to better check if cygwin. Still a bit hacky