start work on 0.7
functions.sh: fix the columns check

In order to have the same behaviour as libeinfo, we need to check for
COLUMNS in  the environment, then set the default if we could not find
that value.

X-Gentoo-Bug: 506704
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=506704