Refact. Set TERM variable only for shell for git compatability.