Fixes #4611: Allows specifying a file to be created whenever a particular
rake task completes successfully in order to support re-running the rake
command if it fails. Specifically targeted at allowing migrate and seed
to re-run.