submodules should be relative to git-dir
account for empty rev-parse output