More tests of config with various absent files

Plus a bit of extra paranoia to ensure config object has valid
contents.
More config code checks and cleanups
Merge pull request #1604 from arrbee/config-file-checks

Extend checking for config with no files