Try matching submodule name up to path