auto creates dist.dir