buildenv/1.2.x/win32, buildenv/1.3.x/win32-static: fix cygwin detection for the case where the registry points to a non-existant directory.