Gracefully handle FreeBSD sed-isms.