[test-suite, CUDA] Only consider the end of path as the version

Otherwise cmake trips on /some/path-0/cuda-1.2 and picks '0' as the version.
1 file changed