fix cd-ing in script 007