Dymanically find the log path