better checking of ssh-agent accessibility