Index: /trunk/FACT++/src/Main.h
===================================================================
--- /trunk/FACT++/src/Main.h	(revision 18423)
+++ /trunk/FACT++/src/Main.h	(revision 18424)
@@ -107,8 +107,8 @@
         if (path.empty())
         {
-            path = prgpath;
+            path = prgpath.empty() ? "." : prgpath;
 
             // default path not accessible
-            if (access(prgpath.empty() ? "." : prgpath.c_str(), W_OK))
+            if (access(prgpath.c_str(), W_OK))
             {
                 path = ".";
