Add tmp and undo directories