Moved sed step into same RUN command as master and exec daemon start to fix host issue