Better way of determining relative log directory