Modified foreman:export to initially export to a temporary location, then move to the foreman_upstart_path, since running sudo within rbenv is problematic - this breaks the process into a ruby step run as the deployment user, then a shell step (moving the exported files) run under sudo.