fix(third-party-notices): improve ignored modules check (#4301)