Improved update. Aligning project to current state of cordova-lib.