build: Detect sed at configure time Check whether sed is available and use the implementation matching the requirements via the SED variable.