Updated the travis script to ensure it updates the cocoapods gem if necessary.