Implement current working directory logic for pre-deployment commands.
Add generic header and fix post-deployment working directory output.
Improvements to the sandbox path generation so it is handled entirely
within the generated script and work on the output of task-deploy(7).