Fix dist-check.