Fix docgen with correct path to gem's

Fixes #2251
Add creation of zipfile for the artifacts

Fixes #2221
clear the gem paths before the test rake tasks so they find previously installed plugins

Fixes #2235