Always use the right variable

The old code failed on cygwin, because even though USER_PROFILE was
present HOME was the right one to use.