Added ruby version check