Correct bug in version comparison routine