Use const_defined? rather than ||= to maintain ruby 1.8 support.

As in : 67b11b545b4f95369ec7234fe3336994ae9f019b