Copied ndn-cxx's .jenkins script for better compatibility.

refs: #3695

Change-Id: I909fd9b486e16939a58f07d42e356885d809ef9a
diff --git a/.jenkins b/.jenkins
index 0d34875..674d751 100755
--- a/.jenkins
+++ b/.jenkins
@@ -3,7 +3,8 @@
 
 DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
 
-for i in $( find "$DIR/.jenkins.d" -type f -perm /111 | sort ); do
-    echo "Run: $i"
-    "$i"
+for file in "$DIR"/.jenkins.d/*; do
+    [[ -f $file && -x $file ]] || continue
+    echo "Run: $file"
+    "$file"
 done