find home directory correctly