MNT : add guard to not look up HOME env on windows

This variable should not be defined on windows so don't
even bother looking at it.

addresses #3804 

Suggested by @jbmohler