Refactored detection of default system editor. [ci skip]

* Default editor support will be replaced with the next upgrade of the Thor+ gem.
* This is a temporary solution only.