If EMACS is not set, try to find emacs executable.