Add ffdir function for searching for directories