bug fixes for debian init script.