Modify scripts to read and append multiple files in a directory.