Check for counterparts using the original and new package sourcerpm name

The sourcerpm name usually matches the base prefix
for naming purposes, so can be used instead of
needing the original and replacements to match the
base prefix.
Use found package prefixes with the provides auto resolver.

Packages needing to be replaced that are generated
from the same sourcerpm should also use the found
prefixes rather than package names
fixing some conflicts from previous pull request to this