Added internal CD command

Used pipeing (the mailbox approach) to transfer the new directory from
the child process to the parent process and then used the chdir function
to change the working directory.