Updated check.rb for sensu API 0.12.*