Remove duplicate code from Knife::Core::Depends
EncryptedMash::Version*: duplicated code refactor