read home dir should now also work on windows