Fix version parsing for exact tag.