fallback method when version cannot be detected

rstudio build has been broken for a while, for some reason the trick to detect the version won't run on build, even though it will run inside the r-base container just fine.  very strange. Added a work-around to define the version as an environmental variable, and attempt to overwrite that value using the query to the RStudio amazon page.