Compare versions with multiple digits correctly