script for adding cordova platform. Fix for cordova 4.0.0