diff --git a/patches/utils/patch_header.sh b/patches/utils/patch_header.sh
index 3af2273e2f423912dcca90bc7a7db96f379cabec..316f5b2b00087702ac5e22cacc7f11252dfc3fb9 100644
--- a/patches/utils/patch_header.sh
+++ b/patches/utils/patch_header.sh
@@ -21,10 +21,10 @@
 # ** end header
 #
 #header for patch scripts
-if test -e ../.config ; then
+if test -f ../.config ; then
     . ../.config
 fi
-if test -e .config ; then
+if test -f .config ; then
     . .config
 fi
 CMD_OPTIONS="options:\n\n-h, --help\n\tShow brief help.\n-l LOGIN_PATH, --login-path=LOGIN_PATH\n\tA login-path for the mysql connection (see 'man mysql' and 'man mysql-config-editor').\n-u USER, --user=USER\n\tA mysql user.\n-p PASSWORD, --password=PASSWORD\n\tThe password for the mysql user.\n"