Switched to more compatible GetHomeDirectory for Windows