Adds supports for relative path setting in `path_tempfile`

and also auto-creation of temp directory if necessary.
Merge pull request #153 from old9/relative_path_tempfile

Adds supports for relative path setting in `path_tempfile`