calculate columns only once

when using the progress bar, `tput` would be called really often,
leading to errors such as "exec(): Unable to fork"
Merge branch 'static-cols' into master