Add version number parsing logic