Automatic destination creation added, and now sets mode when restoring dirs.