fix uninitialized constant RSpec when running rake RAILS_ENV=test db:setup
use appropriate exception class depending on ruby version
Merge pull request #9 from salimane/pr_fix_rspec_exception

fix uninitialized constant RSpec when running rake RAILS_ENV=test db:setup, fix #8