enabeled sunspot task when running with Rails 4
Merge pull request #380 from hsbt/enabled-rails4

Feature detecting rake task support instead of using version string. Enables sunspot task when running with Rails 4.