improve version handling for minor major