Expand ~ to home directory on unix