~ does not always expand to $HOME