Fix 'No value for xterm' error

Hi,

This fix the error `tput: No value for $TERM and no -T specified` occuring when coke is exectuted out of a terminal (jenkins, etc...).