Moved temp file location to safer place in script

When a change has only deleted files, the temp file would not
be deleted.  This change deletes it right after using it.

Change-Id: Ia719a9333ee6d7ea9dc30f14c2498647d15a0114