Fixed check for cygwin, because in unix terminal environment this variable doesn not exist