Fix #68. Homedir is now detected same as Docker.

Will need to rebase on #83 when that is merged.
Yes, it should, #83 has those fixes.