a fix on top of make check fix for for directory_iterator