Add support for the EDITOR environmetn variable

Not all systems use the sensible-editor... editor, so respect the EDITOR
environment variable.