Add before_install for submodules.