Expand ~ in paths.