sed: deal with peculiar behavior of '2d;2,1p' in GNU sed