Improve OSGi path discovery using logic similar to XMvn p2 SystemIndex.