Changed DirectorySearch determineType function (is entity a file or directory) to a private function.)