Restore working directory before writing XML/HTML files in MSBuild runner.