generalize the home directory