kernel: use sed

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>