ported commit 7487 from branch 0.5.5. Seems to fix loss of config files on windows.
added additional debug info in rsgenexchange