Fix test failure by taking into account artifact bundle shape.

checkUnitInstallation should take into account whether an artifact has
'Eclipse-BundleShape: dir' as this will affect its file name.