Fixed grepl problem in batchEcon2.R.