Update HHVM `DirectoryIterator` workaround

The previous workaround (using `scandir` rather than `DirectoryIterator`
on HHVM) didnt' work on hhvm-nightly. This is an even uglier workaround
than before but it should work fine.