t4301: account for behavior differences between sed implementations