Run tasks for umbrella projects in correct order

Fixes #1018
Merge pull request #1024 from ericmj/umbrellacompile2

Run tasks for umbrella projects in correct order