Fixes the bug where the XML output path is affected by test changing the current directory. By Stefan Weigand.