Refactored options and added support for 0.9.

Below (line 417):
 `var cmd = 'tar czPf ' + escapePath(tarball) + ' -C ' + escapePath(output) + ' .';`
should be
`var cmd = 'tar czPf ' + escapePath(context.tarball) + ' -C ' + escapePath(context.output) + ' .';`