Improve log cleaning combo functionality

The code would break if "latest" was a symlink that didn't point anywhere,
plus the iterative empty directory removal didn't seem to work quite right
on pkgbox64.  This change should be a little more robust.