Add minimal configuration sanity checks

Catch exception if the configuration file does not contain the section
we are looking for to avoid throwing ugly traceback.

Fixes #302.