Fix basename usage

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>