expand_user_path: expand ~ to $HOME, not to the actual homedir.