change home directory lookup to fix bug on Windows