Simplified flags_loader, added support for globs