Use basename() for program name

Signed-off-by: Pekka Enberg <penberg@kernel.org>