ctdb-build: fix version handling in standalone build