maint: choose editor in the commit-msg git hook the same way git does