Fix config file support.

Using the settings specified in the configuration file was broken
after the upgrade to master. This commit fixes that.