allow KeyManager to recover from incompatible agents.

This is for example a problem with Vagrant on Windows: https://github.com/mitchellh/vagrant/issues/1455
Merge pull request #129 from ecki/patch-1

allow KeyManager to recover from incompatible agents.