Added a dirty implementation of change directory.