Updated for support mac

Use "unknownhost" as hostname if RUBY_PLATFORM was unknown.
Use ENV["TMPDIR"] or ENV["TEMP"] as tmp_dir if RUBY_PLATFORM was unknown.
Merge pull request #1 from ryooo321/master

Macでの開発に対応