Refactor DeploymentCredential checks
Fix https://github.com/jbox-web/redmine_git_hosting/issues/151 (check SSH keys with ssh-keygen)