As a side effect, this fixes the crash on restart if files referenced in previous generated configuration are now missing