fix git-handling: it might have returned before the repo was really cloned