debuginfo-install: fix installing when installed version not found in repos, optimize performance (RhBug: 1108321)

https://bugzilla.redhat.com/show_bug.cgi?id=1108321