Fix usage of require('cordova/platforms') after cordova-lib split