[utils] bash_completion: improved _get_options() function

It parse "--help" output of programs, and print only options from it.