Append a trailing slash when reading directory entries. Fixes #9.