change check_config raise message for ruby1.8 compatible