set home directory correctly