Added a Ruby version check. Thanks rdclark.