File dialog: use last used file

When reopening the file dialog, the start point is the last used (loaded or
saved) file and directory.

- some minor changes