Add path separator to end of Dir.tmpdir when generating tempfile name

Resolves #3