improve scripts that are deleting patches/index.php
diff --git a/releng.control/cleanupArtifacts.sh b/releng.control/cleanupArtifacts.sh
index d3c7062..a0f2bdd 100644
--- a/releng.control/cleanupArtifacts.sh
+++ b/releng.control/cleanupArtifacts.sh
@@ -32,7 +32,7 @@
 # empty directories often result from "bad builds". We remove those no matter how old
 find ${artifactsDir} -mindepth 2 -maxdepth 3 -type d -empty -exec rm -fr '{}' \;
 # now remove old ones
-find ${artifactsDir} -mindepth 2 -maxdepth 2 -ctime +$ndays -execdir ${RELENG_CONTROL}/removeIf.sh '{}' \;
+find ${artifactsDir} -mindepth 2 -maxdepth 2 -type d -ctime +$ndays -execdir ${RELENG_CONTROL}/removeIf.sh '{}' \;
 
 after=`find ${artifactsDir} -mindepth 2 -maxdepth 2 | wc -l`;
 echo "            number of directories after cleaning: ${after}";