diff --git a/src/DDSERVICES/REST/getLastRealUpdate.php b/src/DDSERVICES/REST/getLastRealUpdate.php
index 041be6e..adf7a06 100644
--- a/src/DDSERVICES/REST/getLastRealUpdate.php
+++ b/src/DDSERVICES/REST/getLastRealUpdate.php
@@ -25,7 +25,7 @@
     {
             $VI = $VI_NAME->item(0)->parentNode;
             $location = $VI->getElementsByTagName("LOCATION")->item(0)->nodeValue;                     
-            $find = 'find '.$location.'*.nc.gz -type f -printf \'%T@ %p\n\' | sort -n | tail -1 | cut -f2- -d" "';
+            $find = 'find '.$location.' -name \'*.nc.gz\' -type f -printf \'%T@ %p\n\' | sort -n | tail -1 | cut -f2- -d" "';
             $lastFile = exec($find);
             if (!file_exists($lastFile))
                 exit('NO SUCH FILE '.$lastFile);
diff --git a/src/DDSERVICES/SOAP/DDserverWeb.php b/src/DDSERVICES/SOAP/DDserverWeb.php
index e5d5d85..2d550bb 100644
--- a/src/DDSERVICES/SOAP/DDserverWeb.php
+++ b/src/DDSERVICES/SOAP/DDserverWeb.php
@@ -348,9 +348,9 @@
  
             if ($VI->item(0)->nodeValue != NULL)
             {
-					$location = $VI->item(0)->parentNode->getElementsByTagName("LOCATION")->item(0)->nodeValue; 
+					$location = $VI->item(0)->parentNode->getElementsByTagName("LOCATION")->item(0)->nodeValue;
 					
-					$find = 'find '.$location.'*.nc.gz -type f -printf \'%T@ %p\n\' | sort -n | tail -1 | cut -f2- -d" "';
+					$find = 'find '.$location.' -name \'*.nc.gz\' -type f -printf \'%T@ %p\n\' | sort -n | tail -1 | cut -f2- -d" "';
 					$lastFile = exec($find);
 					if (!file_exists($lastFile))
 						exit('NO SUCH FILE '.$lastFile);
--
libgit2 0.21.2