Delete temp directory when done

Signed-off-by: Ian Macalinao <ian@giza.us>
Make TEMP_DIR a variable

Signed-off-by: Ian Macalinao <ian@giza.us>