Fix conditional checking for shell prompt
Turn on tracing in libunwind and make gdb platform agnostic