SonarQubeAnalysisConfig.xml differs on linux vs windows

Running sonar prepare + msbuild on a linux machine generates SonarQubeAnalysisConfig.xml with ought values for BuildUri, TfsUri, VsCoverageConverterToolPath in the AditionalConfig section. This causes the error bellow when reporting from a windows machine:

##[error]12:59:34.561 Inconsistent build environment settings: the build Uri in the analysis config file does not match the build uri from the environment variable.