Fix a bug where changing config.layout_name doesn't actually switch layout

Fixes #4