Config: implement support for wildcard includes

Fixes #2771