Fix the check for the existance of the repo