check for ruby version and handle failure to load modules