Fix install scripts handling of submodules.