Stop trying to reinstall cstruct when we don't need to.
Fix up how we detect Ubuntu-based local repositories.

We need to have the repo metadata generated before we index the
available repositories for the slaves.
Have upstream_proxy default to null instead of the empty string.