Change R_LIB to deployment directory to avoid writing to runtime

We would like to avoid modifying the runtime from deployments.  This change installs the matR library to
$TARGET/lib instead of under the runtime.