Fix for source file lists that include folders, added output file
argument.