Use sys_get_temp_dir() instead of "/tmp", thanks ALeX. Fixes #9