[Setup] tweak setup loading xml code, so it can be used for plugins.