replace strsep with strstr in find_repo