add night verion support.

Hi,
I'm using [iTerm2-2_9_20140916-nightly.zip](http://iterm2.com/downloads/nightly/).
It's a nightly build verion of iTerm, and then the script does not work.
So I modify the script to support this new version.