check the major rails version directly