module now rejects deferred object if cordova is not present