Added production env check to destory bag rake task.  Fixed template deprication.