Follow the chain of paths for local dependencies

Look for local chain of dependencies based on parent dependencies path list.
Kept the pathfrom the root `component.json` during the lookup for backward compatibility