Improve formatting of output if backtrace isn't available