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