Trying to copy a file that didn't exist yet caused the script to break when running it the first time.