generalize homedir with tilda