Detection and correct handling of jars that are already OSGi bundles