Suport for HOME (~) in tab completion.

Also suport it in add_torrent (making it consistent with move_torrent).