Do permissions changes in a nicer way for sed_i.