Bugfix: generateForDir() didn't fire callback in cases when no files were processed, or directory could not be read