build: fix getting ABI version for binary packages from the same source package