diff --git a/src/warden-client/bin/receiver.pl b/src/warden-client/bin/receiver.pl
index 696ecab171e2d8babc799b2adaeda86d9e96962a..b9d4542bf240a0f348829af1ace06805ff57ef3e 100755
--- a/src/warden-client/bin/receiver.pl
+++ b/src/warden-client/bin/receiver.pl
@@ -7,6 +7,8 @@
 use strict;
 use warnings;
 
+use File::Basename;
+
 #------------------------------------------------------------------------------
 # Warden 2.2 Client, Receiver, Example
 #
@@ -18,11 +20,10 @@ use warnings;
 #------------------------------------------------------------------------------
 # This code should developer add into his/her application.
 
-# Path to warden-client directory
-my $warden_path = '/opt/warden-client/';
-
-# Inclusion of warden-client receiving functionality
-require $warden_path . '/lib/WardenClient.pm';
+# Load Warden client library and use main module
+my $bin = File::Basename::dirname(__FILE__);
+use lib "$bin/../lib";
+use WardenClient;
 
 # Definition of requested event type. This attributes is also set on server
 # and must not change.