detect emacs executable under mac os x