This script will take all the files being referenced inside of your comp and copy them to a specified directory. A copy of the nuke script will then be added to this directory with all the file paths set to relative file paths. This means that the nuke script can be opened successfully, regardless of where the folder ends up being transferred to.