virttest.utils_test: make both relative and absolute path working

current usage would fail when specifying abs path for image_name

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>