CUDAToolkit: Detect CUDA SDK that don't have nvcc

When a CUDA sdk doesn't have nvcc, defer to the existence of
a version.txt file. When we do this fall back we also reconstruct
the CUDA version via version.txt

Fixes #20643
2 files changed