minor bug: TMP variable should TEMP

TMP variable should TEMP, and replaces "/tmp/" "${temp_directory}/"