check for env. SSH_CONNECTION also, when determining localness