diff --git a/agent/bin/datasid-common.sh b/agent/bin/datasid-common.sh
index 41f385049ea9d4cb62cdff061229b583dcc71e73..c9e71df10a88cba44e0f15c5daa01969bf2d8b06 100755
--- a/agent/bin/datasid-common.sh
+++ b/agent/bin/datasid-common.sh
@@ -57,13 +57,13 @@ done < ${conf}
 
 if ! test -f "${PROXYCONF}"; then
     date +"%F %T - WARNING: Proxy file not found."
+    # Read config file and declare only valid variables
+else
+    while read var; do
+        test -n "$(echo $var | egrep -i "^[a-z_]+=")" && eval "export ${var}"
+    done < ${PROXYCONF}
 fi
 
-# Read config file and declare only valid variables
-while read var; do
-    test -n "$(echo $var | egrep -i "^[a-z_]+=")" && eval "export ${var}"
-done < ${PROXYCONF}
-
 # Create "data" and "log" directories if needed
 mkdir -p ${DATADIR} ${LOGDIR}