Fix: double BASENAME problem

Signed-off-by: Miroslav Safr <Miroslav.Safr@gmail.com>