Only includes valid files in tree.

Fixes #13