Fix batch for adding files. Refs #7451