Fix crash occuring when user has no EDITOR env variable.