allow moving up a node with cd

Change-Id: Id1419fddda4aa2d2c16b5775a43c8df58db98c73
diff --git a/src/utils.hpp b/src/utils.hpp
index 54c455a..4f10102 100644
--- a/src/utils.hpp
+++ b/src/utils.hpp
@@ -8,3 +8,4 @@
 #include <string>
 
 std::string joinPaths(const std::string& prefix, const std::string& suffix);
+std::string stripLastNodeFromPath(const std::string& path);