Expand ~ in filename strings

This fixes `opam config setup --dot-profile=~/.bashrc`

Remark: this was already working fine if you do `opam config setup --dot-profile ~/.bashrc` (as this was shell-expanded)