Updated version logic for PEP 440.