use correct function to rewind directory
add test with RecursiveDirectoryIterator from example
add note about issue #50