Added a check for an Xcode script being run or not