more fixes for log directory fetching.