Fix plugin check error, when plugin dependency with specific version is given.

Fix for this issue: https://issues.apache.org/jira/browse/CB-6615