Propagate dependencies in mix tasks

Closes #1036