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

by making it use `Base.edit`