Convert loop to list comprehension

because i like it better this way :P

Ideally we can do something nicer than string comparison to understand the
config value but I'll leave that for later.