mk/targets.mk: consider only release_* tags for constructing version strings