Detect presence of repository