[minor] Better license detection