Properly check $TERM for screen variants

Previously it would not recognize when $TERM was set to screen-256color