bash-completion: use more dnf API to more better cache dir

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>