Fix git discovery from subdirs of repo