Reconfigure core.editor.

It seems that core.editor is sometimes (but not always) called from
bash, so maybe using an *.sh script works better?