Implementing the CWD command