Fix search and ovftool functions to support many cli options.