add expansion from ~ to $HOME