Generalized search for Git path