Don't use user.home on Windows, fix getOS bug