Fixes a bug where logfile config option was unused.