exclude rake files from artifacts

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