User homes directory names

Fix an issue with user homes when user home directory has not the
same name as the username.

Fixes bug #497.