Normalize submodule paths on lookup

Fixes libgit2/libgit2#1845