build: add mkrevision.sh helper script which properly infers the revision from either...