The deployment folder is set in the registry (on the agent machine). The registry key is HKEY_LOCAL_MACHINE\\SOFTWARE\\Red Gate\\Deployment Manager, and the root deployment path is stored in the string value Agent.Deployment.ApplicationDirectory