Issue #338 - Remove "require rubygems" from code

Fixes #338.