--- a/script/thruk_fastcgi.pl
+++ b/script/thruk_fastcgi.pl
@@ -3,7 +3,8 @@
 use warnings;
 use strict;
 
-use lib 'lib';
+use lib '@THRUKLIBS@';
+use lib '@DATADIR@/lib';
 
 ###################################################
 # create connection pool
