build: config: Fix bug in enum selection.

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