Only run `test:prepare` task if available.
Merge pull request #1022 from rspec/check-test-prepare-task

Only run `test:prepare` task if available.