If --init flag is specified for the install script, install all required packages and update submodules.