Only load the generator if Rails is defined and Version is greater than 3

With this modification, the feature gem works for a Rails 2.3.18 application running in RubyEE 1.8.7.