When writing a set of files, only write to valid directories.
When writing a set of files, only write to valid directories.

This fixes issue #40

mobiata/twine,FilamentLabs/twine,FilamentLabs/twine,mobiata/twine