Removing the extra /tmp from sys_get_temp_dir()