diff --git a/tools/ConfigDb/dump_ConfigDb.sh b/tools/ConfigDb/dump_ConfigDb.sh
index f5e04cf185441ee87c60dcb72c7015354062233e..bbd97a2208381c2fcf39710b9f908814313bdd7b 100755
--- a/tools/ConfigDb/dump_ConfigDb.sh
+++ b/tools/ConfigDb/dump_ConfigDb.sh
@@ -2,4 +2,5 @@ if [ ${#} -ne 1 ]; then
     echo "You must provide a file name for the TANGO_HOST DB dump!"
     exit -1
 fi
+
 docker exec -it dsconfig python -m dsconfig.dump > ${1}
diff --git a/tools/ConfigDb/load_ConfigDb.sh b/tools/ConfigDb/load_ConfigDb.sh
index e3fe552e1e6bcb709fe65f6cc89c0f1f5783769e..f60d32501e8b60eccd7789cf75750ab189d56603 100755
--- a/tools/ConfigDb/load_ConfigDb.sh
+++ b/tools/ConfigDb/load_ConfigDb.sh
@@ -1,9 +1,10 @@
 if [ ${#} -ne 1 ]; then
     echo "You must provide a file name for the TANGO_HOST DB dump!"
     exit -1
-# Check if the filename begins with /hosthome:
-elif [ ${1##/hosthome/} != ${1//\/hosthome\//} ]; then
+# Check if the filename begins with /hosthome/:
+elif [ ${1:0:10} != /hosthome/ ]; then
     echo "You must provide a filename that begins with \"/hosthome/\".  Why is that?  Because the file needs to be stored from within the container to the hosts file system and your HOME directory will be mounted as /hosthome."
     exit -2
 fi
+
 docker exec -it ${TANGO_CONTAINER_ENV} dsconfig json2tango --write ${1}
diff --git a/tools/ConfigDb/update_ConfigDb.sh b/tools/ConfigDb/update_ConfigDb.sh
index 80febaecca78fcc9282c8ff7a38eb231feb529ce..d17af1ad1d705552e721577902c9dc9f3cef446c 100755
--- a/tools/ConfigDb/update_ConfigDb.sh
+++ b/tools/ConfigDb/update_ConfigDb.sh
@@ -1,9 +1,10 @@
 if [ ${#} -ne 1 ]; then
     echo "You must provide a file name for the TANGO_HOST DB dump!"
     exit -1
-# Check if the filename begins with /hosthome:
-elif [ ${1##/hosthome/} != ${1//\/hosthome\//} ]; then
+# Check if the filename begins with /hosthome/:
+elif [ ${1:0:10} != /hosthome/ ]; then
     echo "You must provide a filename that begins with \"/hosthome/\".  Why is that?  Because the file needs to be stored from within the container to the hosts file system and your HOME directory will be mounted as /hosthome."
     exit -2
 fi
+
 docker exec -it ${TANGO_CONTAINER_ENV} dsconfig json2tango --update ${1}