Fix slow_query_logdir path creation