updated for cordova 3.0 on osx