Resolve homedir properly