Don't presume version is always available.

ThinkingSphinx v3.0.0 didn't have this setting - it was reintroduced in 3.0.1.
Fixing manual Rails loading.

Rails constant isn't available after requiring boot in Rails 3 apps, but is in Rails 2.