[emacs] fix 'mkdir' problem in ansi-term