Use target name instead of object when checking version
Merge pull request #5 from MattMcNam/versions-fix

Fix for specifying a dependency version