change job generator script to take as an argument the number of input files per job