Fix bug with running Cordova tasks on existing project