build: Config: Fix bug in fetching of flag info, enum

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>