server: query global namespace for the constant(fix ruby 1.9 build)