use case-insensitive array search for matching directory keywords with your own