Improved init.d script