Added check for root ssh logins that don't have pty