Bug fix to cover cases where homes are symlinked.

Rework of what was done in #88 by @vrachnis but which seems to have been abandoned.