core, mds: use make distcheck for tarballs
core: bump version to 3.1.1