Add preinstall hook to init submodule dependencies