Fix remember path of last closed window
Improve preferences dialog: the dialog will now remember its state:

 - window geometry
 - current page