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