Set home directory without using getent
Merge pull request #9 from alanpearce/getent-fix

Remove use of getent