Correct $TERM in condition to check if we're in X