Repair the regex that detects the path for the copy plugin.
Merge branch 'repo-in-url' into testing