fix a bug in emacs 24.3.1

* do not execute (tool-bar-mode -1) in terminal