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.