Fix log path building