Stopped using GetTempFileName as it seemed to keep file handles open in mono