build: fix regression in handling ABI_VERSION