Detect cordova.js and use relative path - CB-4609