build: add mkversion.sh helper script