elfplugin: expand the variable $ORIGIN in RPATH

If a binary uses RPATH it can use the $ORIGIN variable to mean the
base path where the binary is located.