Fix the detection of where cuda is installed.