added code for when CYGWIN_VERSION env is not found
fixed fact to use gawk instead of awk