scripts: backport checkpatch.pl from mainline 2.6

Some people have been asking for checkpatch in 2.4. It was
slightly modified not to check for presence of the Kbuild file
in top dir.

Signed-off-by: Willy Tarreau <w@1wt.eu>