fixed bug for .bin/emacs script