Fixed quirks with init.d script