-Fix: more reliable ssh session detection via $SSH_CONNECTION variable