Add hotfix for some strange interaction between tempnam() and copy()