added `--sync` option to pig extension
`--sync` pig extension fix.
`--log` option for pig extension
merged `--sync` and `--log` into `--background`.