makefile: use semver command-line utility
makefile: tweak sed substitution patterns