Fix GitTree parsing on submodule paths

This is unfortunate, but otherwise you can't look at the tree that contains a submodule. :(