Enahnced cordova stub support for running outside of WL env.