Attach jar artifact if instructed to (fix for issue 139)

Simple fix for plugin issue #139 (executing plugin with apklib packagin does not attach resulting jar artifact).

My contact email is leonid-AT-hot-THEDOT-ee as I noticed this is something asked from every contributor.

UPDATE: Fixed a compilation error and squashed two commits into one.