Fix test

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Get dirname from absolute path

Signed-off-by: Tomas Hozza <thozza@redhat.com>