deserialization: adapt to filesystem API changes

This function also needs to handle the different behavior
of the std::filesystem::path::/ operator (as opposed to
std::experimental::filesystem::path).

Change-Id: I913c1a04b90f396e174edf712a5e041e26656528
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/serialize.hpp b/serialize.hpp
index 82bd4bb..525bc21 100644
--- a/serialize.hpp
+++ b/serialize.hpp
@@ -75,9 +75,7 @@
     static void deserialize(const std::string& path, const std::string& iface,
                             T& object)
     {
-        fs::path p(PIM_PERSIST_PATH);
-        p /= path;
-        p /= iface;
+        auto p = detail::getStoragePath(path, iface);
         try
         {
             if (fs::exists(p))