Fix deleted dir detection.

Broken by:	[cc58af6e77]