updated to ruby 2.1.2
updated checks to use global ruby version