check_repos script