make ruby version parser more simple