Changed the /tmp dir with sys_get_temp_dir in the demo