fixed runtime error of tools/thor/http.rb