set configdir based on pkg.name