Portable Logfile
This MR makes it possible that we can store the logfile in the config directory on windows
- useful for portable version
- useful for developing
also we only write a logfile if the application is frozen.
if not frozen (started from source) output should be in the console, and can be redirected to file at will