Move repositories to top of buildfile.

Prevents errors on clean checkouts that have not yet downloaded deps.