lslogins: fix -l -g logic

Signed-off-by: Karel Zak <kzak@redhat.com>