Do not fail plugin installation from git url when --link option is specified

This is wrong when installing a local plugin with dependencies from git repositories.