test if log directory exists