Parse version number