log output path, set uid/gid for work dir

- Log output path is specified, so it always logs to the same file
- Set the right UID:GID for all generated files in work structure, so the files can copied