remove log directory at startup.