Correction to cuda detection