diff --git a/bin/check-log-store.in b/bin/check-log-store.in
index 4aea421cca743a3cf9382d9286f072d28a1a02cd..639f306cbea299375b5096e46b03c7b9b9c8b722 100755
--- a/bin/check-log-store.in
+++ b/bin/check-log-store.in
@@ -16,7 +16,7 @@ revision="@revision@"
 logfile="$1"
 logdir="$2"
 mode="$3"
-module="$4"
+module="`basename $4`"
 path="$5"
 errors="$6"
 warnings="$7"