Minor fixes and additions
Did the dirtyness-check recursively.

Marking dirtyness was already recursive, but checking was not.
Filter adding files for correct file endings.