Fix/jar

This patch fixes error caused by `JSON.parse(JSON.stringify(opts))`, which killed `jar` object. Solution: restore jar option if we have one.

- test case
- fix

Could you please release npm version for this fix. Thank you!