Update to cli.rb to add a default to $EDITOR.

This was causing issues on machines without $EDITOR set as the YAML file was then trying to be executed upon --edit.