Fix repo_clear_cache to clear all cached versions of the repo.

Without this fix, the cache was not getting updated after installing and removing sketches, so the listing after one of these operations would be out of date.