Be smarter about grabbing the editor

Default to 'vim' if $EDITOR is an empty string, and use shell expansion
instead of argument lists so a multi-argument $EDITOR still works.

This fixes #5 and #6