in setup.py, fix method to get R version and R HOME, particularly in Windows environment