bash_cmd: check that SSH_AUTH_SOCK is a socket