nvidia-detect: make version a function.

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