fix bug 4395: ubuntu didn't get pkgdir from the osimage pkdir attribute