cuda: Adapted tests to work with modified cuda toolset

- cuda version is only recognized if it contains no other characters
  than "0123456789."
- cuda path is only tested with dummy value . Otherwise a cuda toolkit
  must be copied to the integration test machine
37 jobs for #18864_custom_cuda_toolkit_location
Status Job ID Name Coverage
  External
passed cdash

failed cmake-dash3win10-windows-release-ninja

00:21:28

passed cmake-hythloth-linux-debug-makefiles+sphinx

00:46:57

passed cmake-minoc-linux-release-lint-iwyu-tidy

00:12:50

passed cmake-moonshade-osx-debug-ninja

00:10:35

passed cmake-moonshade-osx-release-makefiles

00:15:06

passed cmake-terfin-windows-release-vs2019

00:50:26

passed ghostflow-check-master

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager