Quick update to use std dirent