Fix init script not working while in safe mode