Refactor ruby/rails versions and check rails install