Fix TERM env var to make it work with gnome terminal.