sed: slightly better fix for prev commit's problem