Faster directory scanning for osx