[Scripts] Add a validate function to be sure the repository is cloned.