p/cisco-epc3010_: fix tmpfile handling