Check if temp files exist before removing