Finds the component with name NAME present in the MODULE module; if MODULE is nil, then the component is assumed to be a system.