Bunch of init scripts fixes