Make sure #files contains no directory

Fixes #99