More portable homedir ref