packaging: build: read version correctly

broken by 34a86209eb82e1

Change-Id: I6c2fca9a1f9006548ff01b82b55f1dc035d8e932
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>