Fix all the cordova tasks & allow for release builds