setup-repo: try to get the repo locator right