fix sync when the list of submodules changes

the problem is git submodule foreach ignores both the submodule that was
removed and the submodule that was added until submodule update --init
is run