* Changed the lookup order for the logpath environment variable.  With the old order it would break CYGWIN when trying to use the windows USERPROFILE.  By using a HOME check first it removes an issue in Cygwin.