Correctly look for end of license block.