nf-core subworkflows update not finding installed workflow
### Description of the bug

When trying to update a single subworkflow from a private repo, the tooling complains and says that it is not installed. But it works when not specifying a single subworkflow.

### Command used and terminal output

```console
$ nf-core subworkflows -g private-ssh-repo update data_upload


                                          ,--./,-.
          ___     __   __   __   ___     /,-._.--~\\
    |\\ | |__  __ /  ` /  \\ |__) |__         }  {
    | \\| |       \\__, \\__/ |  \\ |___     \\`-._,-`-,
                                          `._,._,'

    nf-core/tools version 2.7.dev0 - https://nf-co.re                                                                                               
                                                                                                                                                                          
         STDERR:                                                                                                                                                          
ERROR    Subworkflow 'data_upload' is not installed in pipeline and could therefore not be updated


```console
$ nf-core subworkflows -g private-ssh-repo update

                                          ,--./,-.
          ___     __   __   __   ___     /,-._.--~\\
    |\\ | |__  __ /  ` /  \\ |__) |__         }  {
    | \\| |       \\__, \\__/ |  \\ |___     \\`-._,-`-,
                                          `._,._,'

    nf-core/tools version 2.7.dev0 - https://nf-co.re
                                                                                               
                                                                                                                                                                          
         STDERR:                                                                                                                                                          
? Do you want to view diffs of the proposed changes? Preview diff in terminal, choose whether to update files
INFO     'subworkflows/falmeida/data_upload' is already up to date                                                                                                               
INFO     Updates complete ✨
```


### System information

Nextflow version: v22.10.1
HPC
nf-core/tools v2.7.dev0
diff --git a/nf_core/components/update.py b/nf_core/components/update.py
index 90a6e0e6..ef645a5a 100644
--- a/nf_core/components/update.py
+++ b/nf_core/components/update.py
@@ -362,7 +362,8 @@ class ComponentUpdate(ComponentCommand):
             raise LookupError(f"No {self.component_type} installed from '{repo_url}'")
 
         choices = [
-            component if directory == "nf-core" else f"{directory}/{component}" for directory, component in components
+            component if directory == self.modules_repo.repo_path else f"{directory}/{component}"
+            for directory, component in components
         ]
 
         if component is None:
['nf_core/components/update.py']