Tweaked import logic.
Adjusted version matching with local component.