Fix init.d issues