Speed up version and range parsing