Fix inability to deal with directories appearing in the list of source files.