[NXCM-4999] Use in-repo path for matching repo targets

This code path was still using "/repositories/$name/$path" to match
repository target patterns. Repository Browsing worked fine, but archive browser triggered this
bug and lead to not using repo targets the same way:

`(?!/com/.*-sources.jar).*` would deny access to the source jar itself but
would allow access to its contents, while `(?!.*/com/.*-sources.jar).*`
would also deny content access.