Fix can't quit emacs when not install global tool.