fix restore() if Repos: section in the lockfile contains multiple entries

- includes test that will fail without the change
- closes #41