scanner/config: Convert to new config system (fixes #405)