Create pkgdir automatically