Better detection of repo and projects