generalize packaging data dir