Debugger: Move test if directory was set from Debugger to Logger