Factored some repeated code.
Fixed: relative-paths weren't honored when bootstrapping or upgrading
       (which is how the buildout script gets generated).