Munge settings in value instead of set_value
Before this munging happened before variable interpolation in settings. This
made it impossible to expand a path properly if it contained a reference to
another setting. By munging after variable interpolation we can solve this
problem.