Error out on bad config files. Fixes #228