nvidia-detect: use exit()

Signed-off-by: Philip J Perry <phil@elrepo.org>
nvidia-detect: use ARRAY_SIZE()

Use ARRAY_SIZE macro to calculate the size of the arrays.

Signed-off-by: Philip J Perry <phil@elrepo.org>