Added checks to ensure DJ Rollback only runs on rails-app and workers.