xbps-rindex(8): fix #19. An ATF test-case will be imported later.