Verifies file extension is for temporary file before removing.