CB-12786: Improve logic for searching plugin id in case of module already exists in node_modules
CB-12786: Improve logic for searching plugin id in case of module already exists in node_modules

 This closes #555

filmaj/cordova-lib,phonegap-build/cordova-lib,filmaj/cordova-lib,phonegap-build/cordova-lib,filmaj/cordova-lib,phonegap-build/cordova-lib,matrosov-nikita/cordova-lib,matrosov-nikita/cordova-lib,stevengill/cordova-lib,purplecabbage/cordova-lib,shazron/cordova-lib,matrosov-nikita/cordova-lib,purplecabbage/cordova-lib,stevengill/cordova-lib,filmaj/cordova-lib,stevengill/cordova-lib,purplecabbage/cordova-lib,shazron/cordova-lib,dpogue/cordova-lib,filmaj/cordova-lib,shazron/cordova-lib,apache/cordova-lib,phonegap-build/cordova-lib,dpogue/cordova-lib,apache/cordova-lib,purplecabbage/cordova-lib,matrosov-nikita/cordova-lib,matrosov-nikita/cordova-lib,stevengill/cordova-lib,matrosov-nikita/cordova-lib,stevengill/cordova-lib,shazron/cordova-lib,purplecabbage/cordova-lib,filmaj/cordova-lib,apache/cordova-lib,apache/cordova-lib,apache/cordova-lib,phonegap-build/cordova-lib,purplecabbage/cordova-lib,shazron/cordova-lib,dpogue/cordova-lib,shazron/cordova-lib,dpogue/cordova-lib,phonegap-build/cordova-lib,stevengill/cordova-lib,dpogue/cordova-lib,dpogue/cordova-lib