restore correct version handling

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>