Modify installation procedure so path to Rscript is not hardcoded

Instead, use a path based on R_HOME.