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.
Merge pull request #305 from eve-val/list-comprehension

Convert loop to list comprehension