Fix formatting in debian init script and add debug-threaded mode