Improve sed portability