move iTerm into separate file

test for iTerm presence and call external file if it exists; otherwise, proceed with the existing code
moving the iTerm commands to another file avoids errors thrown by the osascript compiler when referencing a non-existent application