Allow building directories in parallel.

Inter-dir dependencies can be specified like this:
dir1 dir2: dir3 dir4