diff --git a/public_html/check-config.php b/public_html/check-config.php
index f73d7ec99c2924cfec24c0c1c5ba68bf005d6d52..ee675a30a8447e936d93782a692152a61566129d 100644
--- a/public_html/check-config.php
+++ b/public_html/check-config.php
@@ -160,6 +160,7 @@ if (!isset($aConfig) || !is_array($aConfig)) {
         'buildDefaultsDir',
         'packageDir',
         'archiveDir',
+        'tmpDir',
     ) as $sKey) {
         checkdir($aConfig[$sKey], $sKey);
     }
diff --git a/public_html/deployment/classes/vcs.git.class.php b/public_html/deployment/classes/vcs.git.class.php
index 0a4fad7820fbb5c85078c4d712a250f1449b0562..481a01da3150948bad2348a7183f29980b92f509 100644
--- a/public_html/deployment/classes/vcs.git.class.php
+++ b/public_html/deployment/classes/vcs.git.class.php
@@ -261,6 +261,8 @@ class vcs implements iVcs {
                 }
                 $this->_aRemoteBranches = $aReturn;
                 $oCache->write($aReturn, $iTtl);
+            } else {
+            $this->log(__FUNCTION__." FAILD with rc=$iRc $sGitCmd", 'error');
             }
         } else {
             $this->_aRemoteBranches = $oCache->read();
@@ -360,6 +362,8 @@ class vcs implements iVcs {
     public function getRevision($sWorkDir = false) {
         $this->log(__FUNCTION__." start");
         $aReturn = array();
+        $aOutput=array();
+        $iRc=false;
         if (!$this->getUrl()) {
             return false;
         }
@@ -385,8 +389,11 @@ class vcs implements iVcs {
 
         $sGitCmd.='git log -1 "' . $this->_sCurrentBranch . '" 2>&1 ; '; // 0.0 s
         $this->log(__FUNCTION__." start command $sGitCmd");
-        $sLoginfo = shell_exec($sGitCmd);
-        $this->log(__FUNCTION__." end command $sGitCmd");
+        // $sLoginfo = shell_exec($sGitCmd);
+        exec($sGitCmd, $aOutput, $iRc);
+        $sLoginfo= implode("\n", $aOutput);
+        $this->log(__FUNCTION__." end with rc=$iRc <pre>$sLoginfo</pre>", ($iRc==0 ? 'info':'error'));
+        
         /*
          * 
          * example output: