only use tput in an interactive shell.

Fixes #165