Added check to ensure script is being run in Apple's Terminal.app