Index: trunk/FACT++/src/DimWriteStatistics.cc
===================================================================
--- trunk/FACT++/src/DimWriteStatistics.cc	(revision 11973)
+++ trunk/FACT++/src/DimWriteStatistics.cc	(revision 11974)
@@ -98,7 +98,10 @@
 //! @return whether or not the given path exists
 //
-bool DimWriteStatistics::DoesPathExist(const string &path, MessageImp &log)
+bool DimWriteStatistics::DoesPathExist(string path, MessageImp &log)
 {
     namespace fs = boost::filesystem;
+
+    if (path.empty())
+        path = ".";
 
     const fs::path fullPath = fs::system_complete(fs::path(path));
@@ -153,5 +156,6 @@
         throw runtime_error("Path to be created looks suspicious '"+path+"'");
 
-    CreateDirectory(path.substr(0, path.find_last_of('/')));
+    if (path.find_last_of('/')!=string::npos)
+        CreateDirectory(path.substr(0, path.find_last_of('/')));
 
     //path does not exist, and upper level have been created already by recusrion.
