Avoid "tput: No value for $TERM and no -T specified" when running from CGI or similar by checking for interactive shell