CUDA: Capture all nvcc output when extracting toolkit root
Since !5620 (merged) and !5777 (merged) we always run the command
nvcc -v __cmake_determine_cuda
to look for the toolkit root in its
stderr. On Windows, that command may print to stdout instead, so
capture that as well.
Backport: release
Edited by Brad King