A more meaningful check for existing BuildConfig in transitive dependencies

When checking for existing BuildConfig in transitive AAR dependencies, wrong package name is used