Use basename instead of path

Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>