Test term existence before using tput in Makefile