Retain the first directory level in logging

I feel like there must be a less ugly way to do it, but this seems right...

-[Unknown]