Use the version constant rather than rubygems to get the version.

Gem.loaded_specs['redis'] was returning nil when using bundler's
standalone mode (which avoids using rubygems at runtime).