Getting the correct files to copy