Implementing the PWD command