Update get_stacktrace_for_top_thread.pl