Rails 4 support

Rails 4 .version now returns a Gem::Version. We need to convert it to a string to enable comparison.