Further allow any editor to be set and used for the edit function. Ensures windows commands are handled by spawn(`cmd /c $editor $file`).