Use dir count for semi-idempotency with cookbook download.