Use RbConfig::CONFIG['host_os'] to check for platform since RUBY_PLATFORM returns "java" for JRuby on Mac OS X.
Merge pull request #74 from statonjr/patch-1

Better OS check