Include directories that contain changes inside them when calculating diff.

Fixes #6722. Does not change behaviour when AUFS is used.

Docker-DCO-1.1-Signed-off-by: Leszek Kowalski <github@leszekkowalski.pl> (github: ljk)