lib/update: taking submodules into account