Fix bug in init.d scripts