Use default editor ($EDITOR) if it exists, otherwise use emacs