Expand tilde to the user's home directory.