build: Check for sed before using $SED