Make sure the TERM variable is set correctly