Adds treeish support for dependencies