debuginfo-install: check for root with dnf api

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