Normalize the exclusion pattern to match pattern when both are relative.