added ability to go to previous working directory