Fixes #4484 by checking the process environment for all the expected environment variables set by Xcode Cloud.