use SSH_CONNECTION instead of SSH_TTY for determing if SSH session