Fixed it so that the log directory will finally get returned as well.