Add run ids to XML file on output (bug #1092)