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

Will need to rebase on #83 when that is merged.