Changed getHomeDir() to use HOMEPATH and HOMEDRIVE when on Windows