set script flag, remove dubious '-i' from sed