Add require-maybe function; only load grok if it is available.