submodule: avoid auto-discovery in prepare_submodule_repo_env()