cmake: check that ruby is version 1.9 or later