Fix preferences file path in preferences window
Merge pull request #2810 from federicobond/fix-preferences-path

Fix preferences file path in preferences window
misc cleaning activities