Change tmp_path default value to Dir::tmpdir.

Consistent of the description from README.

Also fix a RuntimeError (cannot generate tempfile '') with default
value (nil), where Tempfile#new can't use nil as second argument.
Merge pull request #41 from bootleq/tmpdir

Change tmp_path default value to Dir::tmpdir.