detect Rscript