Recreate unprocessedSourceFiles each time around the loop, otherwise we
will end up in an infinite loop if ever add anything to
unprocessedSourceFiles.