adding in switching PWD when cd-ing