Path = null in TeamBuild environment

SonarScanner version 4.8
Using Azure CI/CD deployment group to execute a cmd on remote VM.
This is the command that is executed on the remote VM:
C:\SonarQube\net46\SonarScanner.MSBuild end /d:sonar.login=“d5fb370903135adc20709eca31651dd476697349”

When execute thru CI/CD deployment, sonarscanner thinks it’s in TeamBuild mode.
As a result, it goes down the TeamBuild environment path.
When execute on the VM. it’s not in TeamBuild mode.

020-05-07T21:01:41.3569357Z ##[error]System.ArgumentNullException: Value cannot be null.
Parameter name: path
at System.IO.Directory.GetDirectories(String path, String searchPattern, SearchOption searchOption)
at SonarScanner.MSBuild.TFS.TrxFileReader.FindTrxFiles(String buildRootDirectory, Boolean shouldLog)
at SonarScanner.MSBuild.TFS.BuildVNextCoverageReportProcessor.TryGetTrxFiles(AnalysisConfig config, ITeamBuildSettings settings, IEnumerable`1& trxFilePaths)
at SonarScanner.MSBuild.TFS.CoverageReportProcessorBase.ProcessCoverageReports()
at SonarScanner.MSBuild.PostProcessor.MSBuildPostProcessor.Execute(String args, AnalysisConfig config, ITeamBuildSettings settings)
at SonarScanner.MSBuild.BootstrapperClass.PostProcess()
at SonarScanner.MSBuild.BootstrapperClass.Execute()
at SonarScanner.MSBuild.Program.Execute(String args, ILogger logger)
at SonarScanner.MSBuild.Program.Main(String args)