fixed the logs path handling