Fixed for Cordova 2.9

by applying modifications required by Cordova 2.7
https://github.com/apache/cordova-ios/blob/master/guides/Cordova%20Plugin%20Upgrade%20Guide.md