BUG: fix some version comparison special cases.