buildconf: avoid using tempfile when removing files

Closes #5213
diff --git a/buildconf b/buildconf
index 5095753..383665a 100755
--- a/buildconf
+++ b/buildconf
@@ -64,16 +64,7 @@
 #
 removethis(){
   if test "$#" = "1"; then
-    find . -depth -name $1 -print > buildconf.tmp.$$
-    while read fdname
-    do
-      if test -f "$fdname"; then
-        rm -f "$fdname"
-      elif test -d "$fdname"; then
-        rm -f -r "$fdname"
-      fi
-    done < buildconf.tmp.$$
-    rm -f buildconf.tmp.$$
+    find . -depth -name $1 -print -exec rm -rf {} \;
   fi
 }