changed R script directory to use config