Automatically create backup, swap and undo directories.