Parse major and minor versions