Removing recursive directory iterator write operation as of facebook/hhvm#1761

Write operations done in a `RecursiveIteratorIterator` seemed to be quite a bad idea to me, so I removed them and replaced them with a simple iteration.

The original issue was facebook/hhvm#1761