diff --git a/helpers/config b/helpers/config
index 2b60bfa2b81a748b9ca4c8b318bd0c6d5b3231eb..c09000f01a5cb6d00c5638fc50df1e0e7f4127d2 100755
--- a/helpers/config
+++ b/helpers/config
@@ -183,7 +183,9 @@ cd source
 compile(){
 
 # Make sure the series file is formated correctly after removals
-grep -q [a-z] debian/patches/series || echo -n > debian/patches/series
+if [ -f debian/patches/series ]; then
+  grep -q [a-z] debian/patches/series || echo -n > debian/patches/series
+fi
 
 if [ 1$QUILT != 1skip ]; then
 export QUILT_PATCHES=debian/patches