Issue #154 Corrected handling of temporary file creation
Merge pull request #156 from carlosmiranda/154

#156: pull request Issue #154 Corrected handling of temporary file creation