Get major/minor/patch properly