rpath fix for linux (again)

the same fix proposed by @clementfarabet 
This fixes install issues on Linux.

@andresy if you want to enable relocatable installs, can you please do it in a separate branch and send a PR, I will test it properly on OSX, Ubuntu and RHEL and then push it.