gdb/scripts: fix bug that "bt -s" may fail due to reading non-existed files.