Enable shortcut command to use $EDITOR

`create_shortcut_cmd()` now checks to see if `$EDITOR` is set, and if so
uses that value instead of `$sack__default_editor`.  Also, I used a
heredoc rather than repeated echo statements to populate the shortcut
command because it made editing the command's content much easier.