fix bug in iterm2 applescript

Sometimes with a terminal already open, the original script would
create a new terminal but call cd in the already existing terminal.
This commit fixes this issue by referring to the newly created terminal
explicitly.