Use `stty size` or zero as a fallback for $COLUMNS

Fixes #924