Save old PWD and move back into it afterwards.