Fixes generation of '-I' rules within a group.
Supports flags for packages.