Fix Ruby version issue on <2.1