Detect cordova 3.0 correctly