diff --git a/configure b/configure
index 86cc6259181949256dad1538d560afe3d8f74480..482497e974377f8c9e0ef792ee5f4cb7ef2fba72 100755
--- a/configure
+++ b/configure
@@ -1093,7 +1093,7 @@ exit 0
 fi
 
 # Remove old dependency files to make sure that they get properly regenerated
-rm -f */config-devices.mak.d
+rm -f ./*/config-devices.mak.d
 
 if test -z "$python"
 then