Update cli_getPathComponent.sh:
- Be sure the pattern you want to retrive information from matches
the location string provided. Otherwise, if the pattern doesn't
match, the information won't be retrived from it and the whole
location string provided will be retrived as result instead. We
want the information retrived from location string and not the
location string we provided.
If the information pattern doesn't match the location string
provided, return an empty value. This way, we know the
information needed couldn't be retrived from location string
because the pattern used to extract such information doesn't
match the location string provided.