Rendered directories in flattened mode if required.

Will render directories in flattened mode if their status is not normal.
This allows for renamed directories, or permission changes on directories to be rendered.

https://bugzilla.gnome.org/show_bug.cgi?id=701970
Merge from parent