--- bin/smart-proxy.orig	2014-09-27 09:46:43.550292207 +0200
+++ bin/smart-proxy	2014-09-27 09:46:48.536355156 +0200
@@ -1,6 +1,6 @@
 #!/usr/bin/env ruby
 
-$LOAD_PATH.unshift *Dir[File.expand_path("../../lib", __FILE__), File.expand_path("../../modules", __FILE__)]
+$LOAD_PATH.unshift *Dir["%%DATADIR%%/lib", "%%DATADIR%%/modules"]
 
 require 'smart_proxy'
 Proxy::Launcher.launch
