fixed syntax error + fixed sed for sysvinit