made cmssw scripts batchable