When sshd listens two ports (usually 22 and another one), the sshd -T command will fail if lport is not specified. This commit also simplifies the if-elif block.