Correctly handle rpath