dynamically find home directory