Added resolution of home directory using tilde '~' character in CD
command