nvidia-detect: use getopt_long() for command line arguments

use getopt_long() for command line arguments as this will allow us to
easily add more command line arguments

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