Make `Pkg.edit` more flexible in how it picks up editor preference

by making it use the editor finding logic from `Base.edit`