Separate download and build stages.
Still deadlocks at the end.