Updated script to link any unhandled files from the input directory.