Bug fix: account for cfg file not being a dict

For example, if the config exists but is empty, or if
a user commented out the values in the config file.