use -e rather than -d when checking for the existence of a subrepo

The .git file in a submodule's root directory is not necessarily a
directory, as is the case for the 'time' submodule.

This fixes #7577, where some './sync-all' operations don't detect
that the 'time' submodule is present in the repository.