Improve tests (#679)

diff --git a/src/check-static-inits.sh b/src/check-static-inits.sh
index aa1b129..71551cb 100755
--- a/src/check-static-inits.sh
+++ b/src/check-static-inits.sh
@@ -4,7 +4,7 @@
 export LC_ALL
 
 test -z "$srcdir" && srcdir=.
-test -z "$libs" && libs=.
+test -z "$libs" && libs=.libs
 stat=0