makerelease.lib: Improve version check

Signed-off-by: Michael Buesch <m@bues.ch>