Exapnd ~ in UNIX systems