both: use the output names to load the proper config

The numeric id isn't stable, and causes the config of the outputs
to be assigned to the wrong outputs. Instead, use an unique name
provided by the compositor.