Update dependency if different version of existing dependency is installed

Fixes #4