restored crazy HOME to original value
handle Ctrl-C on windows
moved the fix to the right place
cosmetic