use distcheck for distribution

Thanks @kepstin for the tip.