Fixed TERM variable and reattaching automatically to tmux session.