change R_HOME to point to /app/vendor/R/lib64/R
apply bug fix from gsl branch from @NebJ
ensure target directories exist
pathing fix