Simplify homedir().

Attempted fix for travis' linux build.