Last fixes for splitPackagesAndDuplicates.pl script
Migrated deps from droolsjbpm-integration/kie-remote to here.