Fix homedir (closes #2)