fix the exec parameters for cordova plugin