adds condition to ssh-agent plugin