Automate Transfers: Add another pre-transfer script

refs #7369

Create metadata.json based on directory name.