utils/check_patch.py: synch with latest version on virt-test

This is replay of the following commit by Chris Evich:

Fix project name detection in check_patch

Previously this tool was dependant on a specific directory layout
and the layout was fixed.  Now that project tree has been split
across multiple repositories, there is no guaranteed match.  This
patch tries to locate the nearest LICENSE file while traversing
up the directory tree.  It takes the lower-case version of the
first word in this file as the project name.  As of this commit
all LICENSE files have appropriate content for this scheme to
function properly.  It assumes any future project tree splits
will cause LICENSE files to be updated to match new/changed names.

CC: Chris Evich <cevich@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>