formula: download dependencies before building commands

Closes #1.