Merge pull request #387 from onaio/fix-memory-issues

delete tmp files after use for attachment export