More fixes to init script.