cross-platform code to find home folder when looking .numpy-site.cfg

https://github.com/numpy/numpy/issues/3995