Improve version comparison