Improvements to checkout-deps.sh (bug 6054, r=ds).