Generating file lists from a script