Minor fixes, now uses PREFERED_EDITORS list to find an editor to use rather than a hard coded sequence.