add parameter checking to cordova-build and add to package