Support any type of Git checkout (cloned, or submodule)