Fix reading user's home directory on Windows