only define EDITOR if not already defined (e.g. within nave sub-shell)