fix plugin for cordova 2.7