Tweaking and fixing the init.d script