Use correct version of print_backtrace

Here's the fix for #139. Please let me know if it needs any tweaks. Tests have been run, this patched version also works for us.