changed path to Rscript in metadata script