Fix for PUB-243. Move where .startedH2O is set to avoid environment locking in R.