very sub-optimisation, removing duplicate comparisons
Merge branch 'master' of github.com:ZoneMinder/ZoneMinder
handle bad config lines better