fix HOME detection on Win