Improvements to check_repos