tries to get log files to use correct directory