Turn off inheritance in const_defined? check

This will avoid getting uninitialized constant error for Polisher::Gem
later on since Gem can be defined but Polisher::Gem not.
Merge pull request #105 from strzibny/fix-const_defined

Turn off inheritance in const_defined? check