FIX #3: Updated exclusion handling for nearest dependencies

Exclusions are now considered after nearest dependency resoluion took place.