[build] prevent bad sed usage under osx

${SED} might reference to gsed if gnu-sed is found by autoconf, which leads to a error to prevent installation