Re-add version_compare (>= 1.22wmf18)

Follows-up 98cf7e35e.

Change-Id: I07a63effb5cdb14e48c6b69780fe71dc24f17fd9