Fix failure to get file path of bios

Failed to get the biosTable dir, and caused the process to exit when the
removeTables method was called.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I24ead5703b6026d1fa7da8060b447457ef9eef91
diff --git a/libpldmresponder/bios_config.cpp b/libpldmresponder/bios_config.cpp
index ade09b2..e50b059 100644
--- a/libpldmresponder/bios_config.cpp
+++ b/libpldmresponder/bios_config.cpp
@@ -32,12 +32,12 @@
     jsonDir(jsonDir),
     tableDir(tableDir), dbusHandler(dbusHandler)
 {
+    fs::create_directories(tableDir);
     constructAttributes();
 }
 
 void BIOSConfig::buildTables()
 {
-    fs::create_directory(tableDir);
     auto stringTable = buildAndStoreStringTable();
     if (stringTable)
     {