network_config: Write configs from parser

Tested: Booted up a clean RWFS and saw that the configs were written
correctly from networkd.

Change-Id: I0915571f87ec803b127cd8c51af37832a2720fdd
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/network_manager.cpp b/src/network_manager.cpp
index 86b8550..7d288be 100644
--- a/src/network_manager.cpp
+++ b/src/network_manager.cpp
@@ -70,9 +70,9 @@
 
             // create the interface specific network file
             // if not existing.
-            if (!fs::is_regular_file(filePath.string()))
+            if (!fs::is_regular_file(filePath))
             {
-                bmc::writeDHCPDefault(filePath.string(), interface);
+                bmc::writeDHCPDefault(filePath, interface);
                 log<level::INFO>("Created the default network file.",
                                  entry("INTERFACE=%s", interface.c_str()));
                 isCreated = true;