Changed file iteration from boost to dirent