Fixed Rails 4 deprecation warnings
Don't rely on Rails for version information