Fix bug in generating temporary file paths
Update to newer Atom api