Remove unused
Fix unlink of log directory