allow rlibs download script to run within vm or on host