compressed package directory lists by using package_dir dictionary