Fix PATH lookup to handle Windows case sensitivity (#40711)

Closes #40448

On Windows, PATH might be "Path" instead of "PATH"

Release Notes:

- N/A *or* Added/Fixed/Improved ...
ea5f3e6086ming_jiang committed on 10/20/2025, 4:12:05 PM· committed by GitHubparentdb404fc
1 file changedLine totals unavailable