CB-8155 Do not fail plugin installation from git url with --link

This is wrong when installing a local plugin with dependencies from git repositories.

https://issues.apache.org/jira/browse/CB-8155