Get home dir from environment rather than posix egg.
This should fix Windows compatibility.