Make the pre_install hook compatible with both CocoaPods 0.16.x and 0.17.x