[MNG-3769] [regression] Excluding relocated transitive dependencies does not work o Merged from r736543