functions.sh: Remove a bashism

In the section of code where we were attempting to find out how wide the
screen was, we were using the $COLUMNS variable, which is a magic
variable in bash. Now we just use stty.

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