Handle cd ~