Fix: cannot get HOME env in windows.
Merge pull request #1890 from libm/master

Fix: cannot get HOME env in windows.