rework dirent metamethods for osx
cleanup