Can someone explain why not simply use "grep -ri license ." ?
Another problem is that the license file doesn't necessarily state the name of the license, which is often what you're looking for. (My package compares the text of the license to saved copies of common licenses, and picks the closest match, assuming any are a good match.)