[llvm-objdump] properly use c_str() with format("%s").  Improve getLibraryShortNameByIndex() error handling.