Fix: Use Object.const_defined instead of Kernel

This fixes checking const_defined? for ruby 1.8.7

Resources:

 * http://www.ruby-forum.com/topic/144313