Better default SCM detection