rename file and change path in R script parser