Remove unused 'basename' variable

Follows-up d504b040c592a45d.