[[[NSBundle mainBundle] executablePath] stringWithEscapedShellCharacters]] would remove the assumption about the current working directory having iTerm.app in it.