metomi/rose#13: move version getter logic.