Let rake tasks work without rspec on production

Applied @DAddYE's suggestion on #783. @nesquena @DAddYE merge if you think this is right.