Fix Git support

Fix a regression from 4051ede, which introduced submodule support by allowing
for arbitrary nesting.  Unfortunately the regexp introduced by that commit had
two consecutive path separators which broke standard Git commit messages.

This commit makes the nested path really optional, and so fixes commit 
messages in standard repositories.

Sorry for the breakage