Check for TERM env