Made RebuildRepoList() occur AFTER setting Dir