Lib: Separate long file lists in chunks

For 400+ files, the file list gets too long, resulting in a ENAMETOOLONG
error. Running the task on each file individually would be too resource
intensive (spawning a JVM instance for each file), so chunks are used.

Fixes gh-20
Closes gh-21
1.2.0