Fix ValidateBuildEnvironment task to work on multiple OSes (#24765)
Fix ValidateBuildEnvironment task to work on multiple OSes (#24765)


xasx/roslyn,ErikSchierboom/roslyn,davkean/roslyn,lorcanmooney/roslyn,AmadeusW/roslyn,cston/roslyn,gafter/roslyn,dpoeschl/roslyn,davkean/roslyn,mavasani/roslyn,KevinRansom/roslyn,MichalStrehovsky/roslyn,bkoelman/roslyn,weltkante/roslyn,genlu/roslyn,brettfo/roslyn,panopticoncentral/roslyn,bkoelman/roslyn,tannergooding/roslyn,eriawan/roslyn,abock/roslyn,weltkante/roslyn,shyamnamboodiripad/roslyn,jmarolf/roslyn,ErikSchierboom/roslyn,xasx/roslyn,wvdd007/roslyn,Hosch250/roslyn,shyamnamboodiripad/roslyn,jmarolf/roslyn,AmadeusW/roslyn,jasonmalinowski/roslyn,heejaechang/roslyn,cston/roslyn,diryboy/roslyn,stephentoub/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,DustinCampbell/roslyn,aelij/roslyn,KevinRansom/roslyn,davkean/roslyn,swaroop-sridhar/roslyn,reaction1989/roslyn,agocke/roslyn,nguerrera/roslyn,dotnet/roslyn,OmarTawfik/roslyn,MichalStrehovsky/roslyn,diryboy/roslyn,sharwell/roslyn,jasonmalinowski/roslyn,mattscheffer/roslyn,lorcanmooney/roslyn,jamesqo/roslyn,bartdesmet/roslyn,aelij/roslyn,shyamnamboodiripad/roslyn,CyrusNajmabadi/roslyn,tmat/roslyn,jamesqo/roslyn,wvdd007/roslyn,CyrusNajmabadi/roslyn,nguerrera/roslyn,Giftednewt/roslyn,KirillOsenkov/roslyn,bartdesmet/roslyn,jcouv/roslyn,tmeschter/roslyn,brettfo/roslyn,KirillOsenkov/roslyn,jcouv/roslyn,tmat/roslyn,jamesqo/roslyn,paulvanbrenk/roslyn,panopticoncentral/roslyn,dotnet/roslyn,lorcanmooney/roslyn,wvdd007/roslyn,eriawan/roslyn,xasx/roslyn,Hosch250/roslyn,MichalStrehovsky/roslyn,cston/roslyn,gafter/roslyn,heejaechang/roslyn,mgoertz-msft/roslyn,mgoertz-msft/roslyn,Giftednewt/roslyn,OmarTawfik/roslyn,diryboy/roslyn,physhi/roslyn,AlekseyTs/roslyn,swaroop-sridhar/roslyn,dpoeschl/roslyn,VSadov/roslyn,panopticoncentral/roslyn,stephentoub/roslyn,bartdesmet/roslyn,KirillOsenkov/roslyn,eriawan/roslyn,tmeschter/roslyn,mavasani/roslyn,genlu/roslyn,mavasani/roslyn,dpoeschl/roslyn,ErikSchierboom/roslyn,tmeschter/roslyn,stephentoub/roslyn,agocke/roslyn,mattscheffer/roslyn,gafter/roslyn,Hosch250/roslyn,weltkante/roslyn,sharwell/roslyn,VSadov/roslyn,DustinCampbell/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,jcouv/roslyn,tmat/roslyn,reaction1989/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,tannergooding/roslyn,AlekseyTs/roslyn,mattscheffer/roslyn,CyrusNajmabadi/roslyn,agocke/roslyn,aelij/roslyn,physhi/roslyn,reaction1989/roslyn,jmarolf/roslyn,mgoertz-msft/roslyn,paulvanbrenk/roslyn,swaroop-sridhar/roslyn,abock/roslyn,OmarTawfik/roslyn,dotnet/roslyn,AlekseyTs/roslyn,heejaechang/roslyn,genlu/roslyn,abock/roslyn,paulvanbrenk/roslyn,VSadov/roslyn,tannergooding/roslyn,jasonmalinowski/roslyn,nguerrera/roslyn,DustinCampbell/roslyn,Giftednewt/roslyn,bkoelman/roslyn,sharwell/roslyn,physhi/roslyn,AmadeusW/roslyn,brettfo/roslyn,KevinRansom/roslyn