Expand a path which includes a home reference with `~`