Improve formatting of backtrace