Fixed update repos script to only check if the first folder is a repository