Change cuda test flag form -x to -n.

Cuda packages were not install, even when the nvcc executable was found.

-x -> File exists
-n -> Length of string is nonzero

You probably meant to write -n instead of -x.