libsmartcols: move some code around

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>