Fix issue when specifiying number of minions as env var