Only search for "main" as a function This changes find_main_name to restrict its search to the function domain.