Before running the command, the contents of the directory containing config.yaml is scp to a temporary directory on the node. The commands is ran with the temp dir as its working directory.
Currently the following library is being used to preform the scp. It does not however support copying directories. This will either have to be done manually, using local, or maybe operations.
I had a look at using the operations however I couldn't get it to work.