fix use of 'b' vs 'batch', thus fixing the mkdir bug.