diff --git a/Common/OS.cpp b/Common/OS.cpp
index 0572fe5c1ff0c70e8c1abd23c3d11f6b2bc3e61b..246f8d23b85c54d6be632f8ed7cbdd671b50eb0d 100644
--- a/Common/OS.cpp
+++ b/Common/OS.cpp
@@ -396,8 +396,11 @@ int SystemCallExe(const std::string &exe, const std::string &args, bool blocking
   }
 
   std::string command;
-  if(exe.size()) command.append("\"" + exe + "\"");
-  if(command.size() && args.size()) command.append(" " + args);
+  if(exe.size()){
+    command.append("\"" + exe + "\""); // allows exe with white space
+    if(args.size()) command.append(" ");
+  }
+  command.append(args);
 
 #if defined(WIN32) && !defined(__CYGWIN__)
   if(isPython || isOctave){