fix depends_on :formula backend

closes #6158
Merge pull request #6166 from rolandwalker/fix_depends_on

fix depends_on :formula backend